package com.zkk.dao;

import com.zkk.pojo.Student;

import java.util.List;

public interface StudentDao {
    List<Student> findAll();

    Student add(Student student);

    int deleteById(int sid);

    Student selectById(int sid);

    int update(Student student);


    //通过页面进行查找的数据
    List<Student> findAll(int i,int pageSize);

    //计算总条数

    int count();

    //模糊查询到层
    List<Student> findAll(int i,int pageSize,String name);

    int count(String username);

}
